﻿using System.Collections.Generic;
using System.Linq;

namespace EFMLEditor
{
    public static class Extensions
    {
        public static Document getDocument(this List<Document> docs, string name)
        {
            return docs.FirstOrDefault(document => document.Name == name);
        }
    }
}
